package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 停车场费用设置
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_car_park_fee")
public class CarParkFee extends Model<CarParkFee> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "sid", type = IdType.ASSIGN_ID)
    private String sid;
    /**
     * 说明
     */
    @TableField("note")
    private String note;
    /**
     * 规则
     */
    @TableField("rule")
    private String rule;
    /**
     * 停车场标识
     */
    @TableField("p_id")
    private String pId;
    /**
     * 停车场计费规则
     */
    @TableField("bill_rule")
    private String billRule;

    public void freeData() {
        this.sid = null;
        this.note = null;
        this.rule = null;
        this.pId = null;
        this.billRule = null;
    }

}
